export function setupCounter() {
    const counterElement = document.getElementById('counter');
    if (counterElement) {
        counterElement.addEventListener('click', function() {
            // 你的事件处理逻辑
        });
    } else {
        // console.error('Counter element not found');
    }
}
